package cn.com.hbhgkj.bussiness;

import java.util.List;

import cn.com.hbhgkj.common.Pagination;
import cn.com.hbhgkj.common.ServiceException;
import cn.com.hbhgkj.pojo.User;

public interface UserService {
	public void regist(User user) throws ServiceException;

	public void reviewRegisteration(User reviewer,User applicant) throws ServiceException;

	public void deleteUser(User user) throws ServiceException;

	public boolean isUserNameExist(String userName) throws ServiceException;
	
	public boolean isCompanyNameExist(String companyName) throws ServiceException;
	
	public void login(User user) throws ServiceException;

	public List<User> getPendingReviews(Pagination pagination) throws ServiceException;
	
	public List<User> getReviwed(Pagination pagination)
			throws ServiceException;
	
	public User updateUserInfo(User user) throws ServiceException;
	
	public void clearPassword(User loggedUser , User target) throws ServiceException;
	//public boolean checkIfIsReviewer(User user) throws ServiceException;

	public List<User> findLikeCompanyName(String companyName,Pagination pagination) throws ServiceException;
}
